<%@ Page Language="C#" EnableViewState="false" ValidateRequest="false" AutoEventWireup="true" 
MasterPageFile="~/App_ThemeMasters/NoStyle/TwoColumnLayout.Master" Inherits="Syrinx.Gui.AspNet.Nitobi2.NitobiBasePage" %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
<%@ Register Assembly="Syrinx.Gui.AspNet" Namespace="Syrinx.Gui.AspNet" TagPrefix="syx" %>
<%@ Register Assembly="Syrinx.Gui.AspNet.Nitobi2" Namespace="Syrinx.Gui.AspNet.Nitobi2" TagPrefix="snc" %><%@ Register Assembly="NitobiControls" Namespace="Nitobi" TagPrefix="ntb" %>
<%@ Register Assembly="Articles.Gui.AspNet" Namespace="Articles.Gui.AspNet" TagPrefix="art" %>

<!--#include file="~/SiteControls/RegisterStandardControls.txt"-->
<!--#include file="../SiteControls/StandardHeaderPageContent.inc"-->
<!--#include file="../SiteControls/StandardFooterPageContent.inc"-->

<asp:Content ContentPlaceHolderID="mainLeft" runat="server" ID="c1">
	<swf:BizProc ID="sArt1" runat="server" factoryName="eComProducts">
		<State entireTree="true"  EditModeSessionKey="GlobalEdit" startDepth="0" endDepth="0" includeSelf="true"/>
		<ParentBizProc id="loginBP" />
	</swf:BizProc>
	<swf:BizProc ID="dArt1" runat="server" factoryName="eComProducts">
		<State entireTree="true" EditModeSessionKey="GlobalEdit" startDepth="0" endDepth="1"  />
		<ParentBizProc id="sArt1" fieldName="id" dataId="pid"/>
	</swf:BizProc>

	<swf:BizProc ID="orderItemBP" runat="server" FactoryName="eComSalesOrderItems">
		<State  entireTree="false"  EditModeSessionKey="GlobalEdit" baseListFieldNameforMaster="product" masterDataDisplay="blOnly"/>
		<ParentBizProc id="orderBP" fieldName="id" dataId="pid" />
	</swf:BizProc>
	
	<swf:BizProc runat="server" ID="wizard" FactoryName="createNewCommunity">
		<ParentBizProc id="orderBP" dataId="orderInfo" />
		<ParentBizProc id="checkout" dataId="info" />
    </swf:BizProc>
    <swf:BizProc ID="signupBP" runat="server" FactoryName="contactSignUpBP" >
		<ParentBizProc id="orderBP" dataId="orderInfo" />
		<ParentBizProc id="checkout" dataId="info" />
	</swf:BizProc>
	<swf:BizProc runat="server" ID="captcha" FactoryName="captchaVerify">
		<ParentBizProc id="loginBP" />
		<ParentBizProc id="signupBP" dataId="pid" />
		<State usage="canedit" />
	</swf:BizProc>
	
	<div class="left"><h2><asp:Label runat="server" ID="_checkoutlbl">Check Out</asp:Label></h2></div>
	
	<snc:NitobiBizObjDisplay ID="od" runat="server" 
			ReadOnlyTemplate="eCom.Gui.AspNet.SalesOrderCheckoutDisplay" 
			ParentBizProcIds="orderBP" />
		<div class="clearer"></div>
	<snc:ComplexBizObjListDisplay ID="pr" runat="server" 
			ReadOnlyTemplate="eCom.Gui.AspNet.SOItemsListDisplay-ProductStyle2"
			ParentBizProcIds="orderItemBP" >
			<macros>
				<Entry name="imageRes" type="String">SmallThumbnail</Entry>
			</macros>
		</snc:ComplexBizObjListDisplay>
</asp:Content>
<asp:Content ContentPlaceHolderID="mainRight" runat="server" ID="c2">
	<div style="display:inline;float:right;min-width:250px;">
		<swf:BizProc runat="server" ID="gArt1" factoryName="genericArticles">
			<State entireTree="true" EditModeSessionKey="GlobalEdit" id="ShippingDetails" />
			<ParentBizProc id="loginBP"  />
		</swf:BizProc>
		<art:ArticleTranslationDisplay runat="server" ID="ad1"
			ParentBizProcIds="gArt1" 
			TranslationTemplate="Articles.Gui.AspNet.ArticleTranslationRWDisplay"
			ReadOnlyTemplate="Articles.Gui.AspNet.ArticleBasicDisplay"
			EditableTemplate="Articles.Gui.AspNet.ArticleRWDisplay" >
		</art:ArticleTranslationDisplay>
		</div>		
		<div style="display:inline;float:left;">
		<snc:NitobiBizObjDisplay ID="contactDisplay" runat="server" 
			ReadOnlyTemplate="Contacts.Gui.AspNet.ContactDetailRWDisplay"
			ParentBizProcIds="signupBP" />
		</div>
		<br clear="all"/>
		<snc:NitobiBizObjDisplay runat="server" ID="cap1" ParentBizProcIds="captcha"
			ReadOnlyTemplate=""
			EditableTemplate="Syrinx.Gui.AspNet.CaptchaDisplay" />
		<div >
			<span class="button3"><swf:ActionButton runat="server" ID="coBtn" Actions="captcha.VerifyUser,signupBP.UpdateBizObj,orderBP.UpdateBizObj,checkout.MoveNext" Text="Complete Checkout"/></span>
		</div>
</asp:Content>